/*************************************************************************
 *                                                                       *
 * This file is part of the DogosFrame distribution.  For full copyright *
 * information, see COPYRIGHT and COPYING.LESSER.                        *
 *                                                                       *
 * Author:           sqbang                                              *
 * Email:            sqbang@ustc.edu                                     *
 *                                                                       *
 *************************************************************************/

namespace DOGOS
{

inline bool
MemoryDatabase::keyAccessed(
    const std::string& key)
{
    KeyData* keydata = findKeyData(key);
    return keydata ? keydata->d_accessed : false;
}


inline void
MemoryDatabase::printUnusedKeys(
    std::ostream& os) const
{
    printDatabase(os, 0, PRINT_UNUSED);
}


inline void
MemoryDatabase::printDefaultKeys(
    std::ostream& os) const
{
    printDatabase(os, 0, PRINT_DEFAULT);
}

}
